-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use FORCE_COLOR=0 for all tests #6585
Conversation
7787691
to
c39fadb
Compare
This pulls in a lot of babel 7 stuff, I don't think we can do that (see #6562). Can we run |
6c6768d
to
461e278
Compare
@SimenB Okay! I've just updated the patch to avoid any dependency bumps. I used |
If you rebase, it /should/ fix your CI |
@hron could you rebase? |
This change ensures that the tests work regardless of the value of FORCE_COLOR environment variable. There are environments where this variable is set to 1 and the tests fail. For example the tests fail when they are run from Jetbrains IDEs (Webstorm, Rubymine and etc).
803f045
to
48574de
Compare
Codecov Report
@@ Coverage Diff @@
## master #6585 +/- ##
==========================================
- Coverage 67.27% 63.73% -3.54%
==========================================
Files 248 235 -13
Lines 9652 8935 -717
Branches 3 3
==========================================
- Hits 6493 5695 -798
- Misses 3158 3239 +81
Partials 1 1
Continue to review full report at Codecov.
|
Thanks! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This change ensures that the tests work regardless of the value of
FORCE_COLOR
environment variable. There are environments where thisvariable is set to 1 and the tests fail. For example the tests fail when
they are run from Jetbrains IDEs (Rubymine, Webstorm and etc).
istanbul-* packages were updated because 1.* version uses old
support-colors
package that doesn't allow to disable colors withFORCE_COLOR=0
. Instead it interpreters zero value in the same way as 1 or anything else by forcing colors. The latest version of istanbul uses the updated package that disables colors ifFORCE_COLOR=0
I suppose this patch is the logical final for #5646 and #5652.
Test plan
If you run tests on master with defined FORCE_COLOR=1 you will receive this:
With this patch applied the situation is resolved and all tests pass regardless of the value of FORCE_COLOR.